package com.moioo.exam;

import org.apache.struts.action.ActionForm;

/**
 * TFileClass entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TFileClass  extends ActionForm implements java.io.Serializable {
	private static final long serialVersionUID = -4135048652388166382L;
	private Integer id;
	private String name;

	// Constructors

	/** default constructor */
	public TFileClass() {
		id = 0;
	}

	/** full constructor */
	public TFileClass(String name) {
		this.name = name;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}
	public String getIdString(){
		if(id != null)return id.toString();
		return "";
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public static TFileClassDAO getDAO(){
		return new TFileClassDAO();
	}
}